package day0526;
public class F3 {
    public static void main(String[] args) {
        int y=0;
        while(y<=2023){
            System.out.print( y );
            System.out.println(   (y%400==0)||(  y%4==0    && y%100 !=0  )    );
            y++;
        }
    }
}
